#!/bin/bash
#开机启动脚本

expect << EOF
  set timeout 10
  spawn su - root
  expect {
  "*assword*" { send "Jinrongde112358！\r" }   
  } 

  send "/home/sort/nginx-1.20.11/sbin/nginx\r"
  send "cd /home/nudt-server-api && sh ./start.sh\r"
  expect eof 
EOF